///> 底层端口模板,端口打开关闭读写
#include "serialport.hpp"

using namespace device;

serialport::~serialport(void)
{
	
}

bool serialport::Open(void)
{
	return(false);
}

void serialport::Close(void)
{
}

bool serialport::Write(uint8_t *ucData, uint16_t usDataLen)
{
	return(false);
}

bool serialport::Write(uint8_t *ucCmd, uint16_t usCmdLen, uint8_t *ucData, uint16_t usDataLen)
{
	return(false);
}

uint16_t serialport::Read(uint8_t *ucData)
{
	return(0);
}

bool serialport::Read(uint8_t *ucCmd, uint16_t usCmdLen, uint8_t *ucData, uint16_t usDataLen)
{
	return(false);
}
